import 'package:fish_redux/fish_redux.dart';

enum StoreDetailViewAction {
  action,
  onGetData,
  onCall,
  addMarker,
  onIndexChange,
}

class StoreDetailViewActionCreator {
  static Action onAction() {
    return const Action(StoreDetailViewAction.action);
  }

  static Action onGetData(data) {
    return Action(StoreDetailViewAction.onGetData, payload: data);
  }

  static Action onCall(data) {
    return Action(StoreDetailViewAction.onCall, payload: data);
  }

  static Action addMarker(controller) {
    return Action(StoreDetailViewAction.addMarker, payload: controller);
  }

  static Action onIndexChange(index) {
    return Action(StoreDetailViewAction.onIndexChange, payload: index);
  }
}
